{{ define "admin/layouts/app" }}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理系统 - </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <base href="/"/>

    <script src="/static/plugins/pace/pace.min.js"></script>

    <link href="/static/admin/css/backend.css" rel="stylesheet" type="text/css"/>
    <link href="/static/plugins/simple-line-icons/layui-icon.css" rel="stylesheet" type="text/css"/>

    <link rel="icon" href="/public/favicon.ico">

    {{ template "pagecss" . }}

    <script type="text/javascript">
        // 全局变量
        var APP = {
            HOST: "",
            ROOT : "",
            STATIC : "/static/",
            WEB_ROOT: "/",
            JS_ROOT: "/static/admin/js"
        };

        var UPLOAD_URL = "admin/common/upload";
    </script>
</head>

<body class="layui-layout-body">
<div id="LAY_app" class="layadmin-tabspage-none">
    <div class="layui-layout layui-layout-admin">
        <!-- 顶部 -->
        {{ template "admin/partials/header" . }}

        <!-- 左侧导航 -->
        {{ template "admin/partials/sidebar" . }}

        <!-- 页面标签 -->
        <!--<div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="home/console.html" lay-attr="home/console.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>-->

        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body" style="top: 50px;">
            <div class="layadmin-tabsbody-item layui-show">
                <!--<iframe src="home/console.html" frameborder="0" class="layadmin-iframe"></iframe>-->

                {{ template "content" . }}
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<input type="hidden" class="upload_url" value="">

<script src="/static/plugins/layui/layui.js"></script>
<script src="/static/admin/js/common.js"></script>

<script type="text/javascript">
    layui.config({
        base: "static/admin/" // 静态资源所在路径
    }).extend({
        app: 'js/app' // 主入口模块
    }).use('app');
</script>

{{ template "pagescript" . }}
</body>
</html>
{{ end }}